//
//  ViewController.m
//  FFmpegDemo
//
//  Created by lw on 2018/6/18.
//  Copyright © 2018年 lee. All rights reserved.
//

#import "ViewController.h"
#import "FFmpegTest.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [FFmpegTest ffmpegTestConfig];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"test2.mov" ofType:nil];
    NSString *documentPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject;
//    NSString *outYuvPath = [documentPath stringByAppendingPathComponent:@"test2.yuv"];
//    [FFmpegTest ffmpegOpenFile:path outFilePath:outYuvPath];
    
    NSString *outPcmPath = [documentPath stringByAppendingPathComponent:@"test2.pcm"];
    [FFmpegTest ffmpegAudioDecodeOpenFile:path outFilePath:outPcmPath];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
